package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户在线时间统计表
 * </p>
 *
 * @author Shane
 * @since 2020-08-03
 */
@TableName("user_online_log")
public class UserOnlineLog implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	@TableField(value = "ip")
	private String ip;

	@TableField(value = "lnglat")
	private String lnglat;

	@TableField(value = "city")
	private String city;

	/**
	 * 上线时间
	 */
	@TableField(value="up_time")
	private Date upTime;

	/**
	 * 下线时间
	 */
	@TableField(value="down_time")
	private Date downTime;

	public UserOnlineLog() {
	}

	public UserOnlineLog(Integer userId, String ip, String lnglat, String city, Date upTime) {
		this.userId = userId;
		this.ip = ip;
		this.lnglat = lnglat;
		this.city = city;
		this.upTime = upTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getLnglat() {
		return lnglat;
	}

	public void setLnglat(String lnglat) {
		this.lnglat = lnglat;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Date getUpTime() {
		return upTime;
	}

	public void setUpTime(Date upTime) {
		this.upTime = upTime;
	}

	public Date getDownTime() {
		return downTime;
	}

	public void setDownTime(Date downTime) {
		this.downTime = downTime;
	}

}
